Adwaita: .osd button.color
authorLapo Calamandrei <calamandrei@gmail.com>
Wed, 8 Jun 2016 11:39:39 +0000 (13:39 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Wed, 8 Jun 2016 11:39:39 +0000 (13:39 +0200)
remove box-shadow from colorbutton colorswatch when an ancestor has
the osd styleclass applied.

gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained.css

index 0b4382914e9900d87bd923095e6a01ff634462b8..c211afe8ea5ef0cdae88e64768d884678b090402 100644 (file)
@@ -944,14 +944,20 @@ button.color {
   colorswatch:only-child {
     &, overlay { border-radius: 0; }
 
-    @if $variant == 'light' { box-shadow: 0 1px _text_shadow_color(); }
+    @if $variant == 'light' {
+      box-shadow: 0 1px _text_shadow_color();
+
+      .osd & { box-shadow: none; }
+    }
   }
 
   @if $variant == 'light' {
-    &:disabled,
-    &:backdrop,
-    &:active,
-    &:checked { colorswatch:only-child { box-shadow: none; }}
+    .osd &, & {
+      &:disabled,
+      &:backdrop,
+      &:active,
+      &:checked { colorswatch:only-child { box-shadow: none; }}
+    }
   }
 }
 
index 25e454dc47a490c7ea6767ceb5b3181615c2e6da..14f2c7c5867279229928adef813a9f1615421c95 100644 (file)
@@ -1408,7 +1408,9 @@ button.color {
     box-shadow: 0 1px rgba(255, 255, 255, 0.76923); }
     button.color colorswatch:only-child, button.color colorswatch:only-child overlay {
       border-radius: 0; }
-  button.color:disabled colorswatch:only-child, button.color:backdrop colorswatch:only-child, button.color:active colorswatch:only-child, button.color:checked colorswatch:only-child {
+    .osd button.color colorswatch:only-child {
+      box-shadow: none; }
+  .osd button.color:disabled colorswatch:only-child, .osd button.color:backdrop colorswatch:only-child, .osd button.color:active colorswatch:only-child, .osd button.color:checked colorswatch:only-child, button.color:disabled colorswatch:only-child, button.color:backdrop colorswatch:only-child, button.color:active colorswatch:only-child, button.color:checked colorswatch:only-child {
     box-shadow: none; }
 
 /*********